package com.junzhiit.nengji.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.bainaeco.framework.base.dao.AbstractBaseDAO;
import com.junzhiit.nengji.dao.RabbitMQFailureDAO;
import com.junzhiit.nengji.model.RabbitMQFailure;

@Repository
public class RabbitMQFailureDAOImpl extends AbstractBaseDAO<RabbitMQFailure> implements RabbitMQFailureDAO {
	
	@Override
	public List<RabbitMQFailure> top200() {
		StringBuilder sql = new StringBuilder();
		sql.append("select * from rabbit_m_q_failure order by created_time asc limit 200");
		
		return queryForList(sql.toString(), RabbitMQFailure.class);
	}
}
